package io.unicorn.modules.water.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.unicorn.common.utils.PageUtils;
import io.unicorn.common.utils.Query;

import io.unicorn.modules.water.dao.CsinfoDao;
import io.unicorn.modules.water.entity.CsinfoEntity;
import io.unicorn.modules.water.service.CsinfoService;


@Service("csinfoService")
public class CsinfoServiceImpl extends ServiceImpl<CsinfoDao, CsinfoEntity> implements CsinfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CsinfoEntity> page = this.page(
                new Query<CsinfoEntity>().getPage(params),
                new QueryWrapper<CsinfoEntity>()
        );

        return new PageUtils(page);
    }

}
